﻿<UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  x:Class="DynamicChart.UI.ChartPart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <Storyboard x:Name="Storyboard1">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="Path">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
        <toolkit:Chart Grid.Row="1" HorizontalAlignment="Stretch" Name="_ctlChart" Title="Chart Title" VerticalAlignment="Stretch">
        </toolkit:Chart>

        <Grid x:Name="_ctlMask" Background="White">
            <Rectangle Fill="#FF17709F" Margin="0" Stroke="#FF000000" StrokeLineJoin="Round"/>
            <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
                <Path x:Name="Path" Width="64" Height="64" Stretch="Fill" Margin="0,0,10,0" HorizontalAlignment="Left" StrokeLineJoin="Round" Stroke="#FFE4D6D6" Data="F1 M 100.5,200.5C 45.2715,200.5 0.499998,155.729 0.499998,100.5C 0.499998,45.2715 45.2715,0.500041 100.5,0.500041C 155.728,0.500041 200.5,45.2715 200.5,100.5" RenderTransformOrigin="0.5,0.5" StrokeThickness="5">
                    <Path.RenderTransform>
                        <CompositeTransform/>
                    </Path.RenderTransform>
                </Path>
                <TextBlock Text="加载中..." Foreground="#FFE4D6D6" FontSize="32" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>
